<% @orders.each do |order| %>

<tr>
	<td><%= order.created_at.strftime("%Y-%m-%d") %>
		<%= f.input :order_id, :input_html => { :value => order.id}, as: :hidden  %>
		
	</td>
	<td><%= order.order_code %></td>
	<td><%= order.customer.company %></td>
	<td><%= order.customer_po %></td>
	<td><%= order.po_date %></td>			
	<td><%= order.amount %></td>			
	<td><%= order.contract_no %></td>
	<td><%= order.tieta_settlement_no %></td>
	<td><%= order.comment %></td>
	<td><%= link_to image_tag('trash.gif'), order, :remote => true , data: { confirm: 'Are you sure?' } %></td>
</tr>

<% end %>

